﻿@model List<CMP.ERP.Model.ExpressCompany>
@{
     Layout = null;
}
@Html.Action("Account_Show", "Account");
    <div class="content">
        <div class="right" id="mainFrame">
            <div class="right_cont">

                <div class="header">
                    <div class="header-right">
                        @*添加*@
                        <form method="post" action="/Provider/AddExpressCompany">
                            <div id="modal-container-973559" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:400px; margin-left:-150px;">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                    <h3 id="myModalLabel">
                                        快递公司新增系统
                                    </h3>
                                </div>
                                <div class="modal-body">
                                    <table class="table table-hover table-bordered " style="width:400px;text-align:center;margin:0 auto;border:2px solid #428bca;">
                                        <tbody>
                                            <tr>
                                                <th>快递名称</th>
                                                <td>
                                                    <input type="text" id="ADDExpress_Company_Name" name="Express_Company_Name">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>面单费</th>
                                                <td>
                                                    <input type="text" id="ADDExpress_Company_Charges" name="Express_Company_Charges">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>联系地址</th>
                                                <td>
                                                    <input type="text" id="ADDExpress_Company_Address" name="Express_Company_Address">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>手机</th>
                                                <td>
                                                    <input type="text" id="ADDExpress_Company_Phone" name="Express_Company_Phone">
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="modal-footer">
                                    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button> <button type="submit" class="btn btn-default"><span class="icon-inbox"></span>保存</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <!-- 顶部 -->

                <div id="middle">
                    <div class="Switch"></div>
                    <script type="text/javascript">
                        $(document).ready(function (e) {
                            $(".Switch").click(function () {
                                $(".left").toggle();

                            });
                        });
                    </script>
                    <div class="right" id="mainFrame">
                        <div class="right_cont">
                            <ul class="breadcrumb">
                                当前位置：
                                <a href="/Home/Index">首页</a>
                                <span class="divider">/</span>
                                快递公司
                            </ul>
                            <div class="title_right"><strong>快递公司管理</strong></div>
                            <div style="width:100%; margin-top:10px">
                                <div>
                                    <form method="get" action="/Provider/SelExpressCompany">
                                        <table>
                                            <tr>
                                                <td>
                                                    <input type="text" name="Express_Company_Name" placeholder="根据名称查询" />
                                                    <button type="submit" class="btn btn-default" style="margin-bottom:10px">
                                                        <span class="icon-search">
                                                        </span>查询
                                                    </button>
                                                </td>
                                                <td>
                                                    <button id="modal-973559" href="#modal-container-973559" role="button" type="button" class="btn btn-default" data-toggle="modal" style="margin-bottom:10px">
                                                        <span class="icon-plus"></span>新增
                                                    </button>
                                                </td>
                                            </tr>
                                        </table>
                                    </form>
                                </div>
                                <div style="margin-top:20px;">
                                    <table class="table  table-hover table-bordered table-striped">
                                        <thead>
                                            <tr >
                                                <th style="text-align:center">快递编码</th>
                                                <th style="text-align:center">快递名称</th>
                                                <th style="text-align:center">面单费</th>
                                                <th style="text-align:center">联系地址</th>
                                                <th style="text-align:center">手机</th>
                                                <th style="text-align:center">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            @foreach (var item in Model)
                                            {
                                                <tr>
                                                    <td style="text-align:center">@item.Express_Company_Id</td>
                                                    <td style="text-align:center">@item.Express_Company_Name</td>
                                                    <td style="text-align:center">@item.Express_Company_Charges</td>
                                                    <td style="text-align:center">@item.Express_Company_Address</td>
                                                    <td style="text-align:center">@item.Express_Company_Phone</td>
                                                    <td style="text-align:center">
                                                        <a href="/Provider/UptExpressCompany/@item.Express_Company_Id">修改</a>
                                                        | <a href="/Provider/DelExpressCompany/@item.Express_Company_Id" onclick="return confirm('真的要删除吗?')">删除</a>
                                                    </td>
                                                </tr>
                                            }
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
   